package com.epoint.mobileoa.bizlogic.mobileoa;

import java.util.HashMap;

import android.os.Message;

import com.epoint.mobileoa.bizlogic.SuperView;
import com.epoint.mobileoa.bizlogic.Task;
import com.epoint.mobileoa.http.HttpHelp;
import com.epoint.mobileoa.service.MainService;

/**
 * @author liyc
 * @time 2012-2-22 上午2:04:48
 * @annotation 
 */
public class GetSendMailListTask extends Task {

	/**
	 * @param con
	 * @param param
	 */
	public GetSendMailListTask(SuperView con, HashMap<String, Object> param) {
		super(con, param);
		
	}

	@Override
	public void exectue(Message mess) throws Exception {

		Integer pagenum = (Integer) getParam().get("pagenum");
		Integer shownum = (Integer) getParam().get("shownum");
		
		String sjfrom = getParam().get("sjfrom")==null?"":(String)getParam().get("sjfrom");
		String sjto = getParam().get("sjto")==null?"":(String)getParam().get("sjto");
		String bt = getParam().get("bt")==null?"":(String)getParam().get("bt");
		String sjr = getParam().get("sjr")==null?"":(String)getParam().get("sjr");
		
		String seamurl = getCon().fp.getSeamurl()+"?requestType=GetSendMailList&userguid="+getCon().fp.getUserguid()+"&pagenum="+pagenum+"&shownum="+shownum
				+"&param4="+sjfrom+"&param5="+sjto+"&param6="+bt+"&param7="+sjr;;
		
		String bs = HttpHelp.getHttpBack(seamurl);
		
		MainService.check_bs(bs);
		
		setMessageToRefreshUI(mess, getCon(), bs);
	}

}
